import byxRequest from "./index"

/**
 * 请求MV的播放地址
 * @param {number} id MV的id
 */
export function getBanners(type) {
  return byxRequest.get('/banner', {
    type: 2
  })
}

// 获取推荐歌曲【飙升榜】
export function getRankings(idx) {
  return byxRequest.get('/top/list', {
    idx
  })
}

// 获取热门歌单【全部】
export function getSongMenu(cat = '全部', limit = 6, offset = 0) {
  return byxRequest.get('/top/playlist', {
    limit,
    offset,
    cat,
  })
}
// 获取歌单详情
export function getSongMenuDetail(id) {
  return byxRequest.get('/playlist/detail/dynamic', {
    id
  })
}